﻿* Encoding: UTF-8.

***This syntax performs the mediation models.

*Y = Dependent variable, argument strength rating
*X = Independent variable, party identification
*M = Mediator, cogntive style
*Cov = Covariate, time 1 belief (Q2.1_1)

*First, isolate the antifracking group to obtain their results. 

FREQUENCIES Q2.1_1.

USE ALL. 
COMPUTE filter_$=(q2.1_1 <= 4). 
VARIABLE LABELS filter_$ 'q2.1_1 <= 4 (FILTER)'. 
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'. 
FORMATS filter_$ (f1.0). 
FILTER BY filter_$. 
EXECUTE. 
 
FREQUENCIES Q2.1_1.

*Cognitive reflection

process y=AStreng2/x=Party_ID/m=CRTtotal/cov=q2.1_1/covmy=2/model=4/boot=5000.

*AOT dogmatism

process y=AStreng2/x=Party_ID/m=AOTDog/cov=q2.1_1/covmy=2/model=4/boot=5000.

*AOT fact resistance

process y=AStreng2/x=Party_ID/m=AOTFac/cov=q2.1_1/covmy=2/model=4/boot=5000.

*Need for cognition

process y=AStreng2/x=Party_ID/m=NFC/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Need for affect

process y=AStreng2/x=Party_ID/m=NAff/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Need for closure
 
process y=AStreng2/x=Party_ID/m=NFClo/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Need to evaluate

process y=AStreng2/x=Party_ID/m=NEval/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Openness to experience
 
process y=AStreng2/x=Party_ID/m=O2E/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Moralized rationality

process y=AStreng2/x=Party_ID/m=MoRat/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Importance of rationality
 
process y=AStreng2/x=Party_ID/m=ImRat/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Faith in intution for facts
 
process y=AStreng2/x=Party_ID/m=FaInt/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Truth is political
 
process y=AStreng2/x=Party_ID/m=TruPol/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Need for evidence
 
process y=AStreng2/x=Party_ID/m=NFEv/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Science knowledge

process y=AStreng2/x=Party_ID/m=Sknow/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Religious fundamentalism

process y=AStreng2/x=Party_ID/m=RelFund/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Religious involvement

process y=AStreng2/x=Party_ID/m=Rel_Invo/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Deference to scientific authority

process y=AStreng2/x=Party_ID/m=DefSci2/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Science curiosity 

process y=AStreng2/x=Party_ID/m=SciCur/cov=q2.1_1/covmy=2/model=4/boot=5000.

*Turn off filter.

filter off. 

*Next, isolate the profracking group to obtain their results. 

USE ALL. 
COMPUTE filter_$=(q2.1_1 >= 6). 
VARIABLE LABELS filter_$ 'q2.1_1 >= 6 (FILTER)'. 
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'. 
FORMATS filter_$ (f1.0). 
FILTER BY filter_$. 
EXECUTE. 
 
FREQUENCIES Q2.1_1.

*Cognitive reflection

process y=AStreng2/x=Party_ID/m=CRTtotal/cov=q2.1_1/covmy=2/model=4/boot=5000.

*AOT dogmatism

process y=AStreng2/x=Party_ID/m=AOTDog/cov=q2.1_1/covmy=2/model=4/boot=5000.

*AOT fact resistance

process y=AStreng2/x=Party_ID/m=AOTFac/cov=q2.1_1/covmy=2/model=4/boot=5000.

*Need for cognition

process y=AStreng2/x=Party_ID/m=NFC/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Need for affect

process y=AStreng2/x=Party_ID/m=NAff/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Need for closure
 
process y=AStreng2/x=Party_ID/m=NFClo/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Need to evaluate

process y=AStreng2/x=Party_ID/m=NEval/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Openness to experience
 
process y=AStreng2/x=Party_ID/m=O2E/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Moralized rationality

process y=AStreng2/x=Party_ID/m=MoRat/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Importance of rationality
 
process y=AStreng2/x=Party_ID/m=ImRat/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Faith in intution for facts
 
process y=AStreng2/x=Party_ID/m=FaInt/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Truth is political
 
process y=AStreng2/x=Party_ID/m=TruPol/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Need for evidence
 
process y=AStreng2/x=Party_ID/m=NFEv/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Science knowledge

process y=AStreng2/x=Party_ID/m=Sknow/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Religious fundamentalism

process y=AStreng2/x=Party_ID/m=RelFund/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Religious involvement

process y=AStreng2/x=Party_ID/m=Rel_Invo/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Deference to scientific authority

process y=AStreng2/x=Party_ID/m=DefSci2/cov=q2.1_1/covmy=2/model=4/boot=5000.

 * Science curiosity 

process y=AStreng2/x=Party_ID/m=SciCur/cov=q2.1_1/covmy=2/model=4/boot=5000.

*turn off filter

filter off. 
 


